package com.whsxt.feign;

import com.whsxt.domain.UserAddr;
import com.whsxt.feign.hystrix.OrderMemberFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: caoqingwen
 * @CreateTime: 2021-03-26 09:54
 * @Description:
 */
@FeignClient(value = "member-service",fallback = OrderMemberFeignHystrix.class)
public interface OrderMemberFeign {


    @GetMapping("/p/address/getDefaultAddr")
    UserAddr getDefaultAddr(@RequestParam("openId") String openId);


}
